package com.geek2.springbootdemo.controller;

import org.springframework.stereotype.Controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttributes;


@SessionAttributes("admin") //扩大其作用域
@Controller
public class HelloBoot {

    /*@RequestMapping("/")
    public String login(String username,String password, Model model) {
        System.out.println("===========已登陆:"+username);
        model.addAttribute("admin",username);
        return "";
    }*/
    @RequestMapping("/toLogin")
    public String toLogin() {
        System.out.println("===========login");
        return "toLogin";
    }
    @RequestMapping("/welcome")
    public String welcome() {
        System.out.println("===========welcome");
        return "welcome";
    }
    @RequestMapping("/welcome1")
    public String welcome1() {
        System.out.println("===========welcome1");
        return "welcome1";
    }
    @RequestMapping("/member-del")
    public String memberDel() {
        System.out.println("===========member-del");
        return "member-del";
    }
    @RequestMapping("/member-list1")
    public String memberList1() {
        System.out.println("===========member-list1");
        return "member-list1";
    }
    @RequestMapping("/order-list1")
    public String orderList1() {
        System.out.println("===========order-list1");
        return "order-list1";
    }
    @RequestMapping("/admin-list")
    public String adminList() {
        System.out.println("===========admin-list");
        return "admin-list";
    }
    @RequestMapping("/admin-role")
    public String adminRole() {
        System.out.println("===========admin-role");
        return "admin-role";
    }
    @RequestMapping("/admin-cate")
    public String adminCate() {
        System.out.println("===========admin-cate");
        return "admin-cate";
    }


    @RequestMapping("/admin-rule")
    public String adminRule() {
        System.out.println("===========admin-rule");
        return "admin-rule";
    }
    @RequestMapping("/foxitjj")
    public String foxitjj() {
        System.out.println("===========foxitjj");
        return "foxitjj";
    }
    @RequestMapping("/plugin-modal")
    public String pluginModal() {
        System.out.println("===========plugin-modal");
        return "plugin-modal";
    }

}
